(prefix-left (s-pad-right first-col-width " " prefix-w-face))
(status-left (s-pad-right first-col-width " " status-left))
new-end lines)
- (cond ((eq which-key-show-prefix 'left)
+ (cond ((and (< 1 n-pages)
+ (eq which-key-show-prefix 'left))
(setq lines (split-string page "\n")
first (concat prefix-left (car lines) "\n" status-left)
new-end (concat "\n" (s-repeat first-col-width " "))
page (concat first (mapconcat #'identity (cdr lines) new-end))))
+ ((eq which-key-show-prefix 'left)
+ (if (= 1 height)
+ (setq page (concat prefix-left page))
+ (setq lines (split-string page "\n")
+ first (concat prefix-left (car lines) "\n" (s-repeat first-col-width " "))
+ new-end (concat "\n" (s-repeat first-col-width " "))
+ page (concat first (mapconcat #'identity (cdr lines) new-end)))))
+ ((and (< 1 n-pages)
+ (eq which-key-show-prefix 'top))
+ (setq page (concat prefix-w-face "- " status-top "\n" page)))
((eq which-key-show-prefix 'top)
- (setq page (concat prefix-w-face "- " status-top "\n" page))))
+ (setq page (concat prefix-w-face "- \n" page))))
(which-key--lighter-status n-shown n-tot)
(if (eq which-key-popup-type 'minibuffer)
(let (message-log-max) (message "%s" page))